
const QRCode = require('qrcode');

QRCode.toString('hello nihao', { type: 'terminal' }, function (err, data) {
    console.log(data);
});